<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>


<c:forEach items="${beans}" var="bean">
 <tr>
  <td>
  <span class="label label-info">
  ${bean.contract.name}
  </span>
  </td>
    
    <td>
    <span class="label">
      ${bean.product.code}
    </span>  
    
    </td>
  
    <td>${bean.product.name}</td>
    <td>${bean.batchName}</td>
    <td>${bean.boxes}</td>
    <td>
     <span class="label label-success">
       ${bean.value }
     </span> 
      </td>
    <td>
     <a href="javascript:;" onclick="removeMe('${bean.id}',this)"><img src="${sbase}images/removeMe.gif"/> </a>
  </td>
  </tr>
</c:forEach>
<script type="text/javascript">
  function removeMe(id,self){
	  if(!confirm('确定删除?'))return;
	 $.post('productcomeoutitem/product-comeout-item!remove','bean.id='+id,function(){
		 $(self).parent().parent().remove();
	 });
  }
</script>